/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package co.com.entidad;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author 841756
 */
@Embeddable
public class TblincapacidadesPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 15)
    @Column(name = "ide_emp")
    private String ideEmp;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 15)
    @Column(name = "ide_incapacidad")
    private String ideIncapacidad;

    public TblincapacidadesPK() {
    }

    public TblincapacidadesPK(String ideEmp, String ideIncapacidad) {
        this.ideEmp = ideEmp;
        this.ideIncapacidad = ideIncapacidad;
    }

    public String getIdeEmp() {
        return ideEmp;
    }

    public void setIdeEmp(String ideEmp) {
        this.ideEmp = ideEmp;
    }

    public String getIdeIncapacidad() {
        return ideIncapacidad;
    }

    public void setIdeIncapacidad(String ideIncapacidad) {
        this.ideIncapacidad = ideIncapacidad;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (ideEmp != null ? ideEmp.hashCode() : 0);
        hash += (ideIncapacidad != null ? ideIncapacidad.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TblincapacidadesPK)) {
            return false;
        }
        TblincapacidadesPK other = (TblincapacidadesPK) object;
        if ((this.ideEmp == null && other.ideEmp != null) || (this.ideEmp != null && !this.ideEmp.equals(other.ideEmp))) {
            return false;
        }
        if ((this.ideIncapacidad == null && other.ideIncapacidad != null) || (this.ideIncapacidad != null && !this.ideIncapacidad.equals(other.ideIncapacidad))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "co.com.entidad.TblincapacidadesPK[ ideEmp=" + ideEmp + ", ideIncapacidad=" + ideIncapacidad + " ]";
    }
    
}
